Repository navigation
chore: remove AI code slop across the codebase - #220
Merged
Merged
Conversation
- Narrow instead of non-null assertions and casts; drop annotations and generics that inference covers. - Collapse duplicated blocks (provider settings defaults, round-robin comparator, stats counts, home filters, season-editor patches, AniList search query, storage migration loops). - Flatten nesting with early returns and small helpers. - Remove unreachable guards whose callers or schemas already guarantee the condition. - Simplify specs: typed file-selection helper in settings spec, a minimal FileReader double, real Files instead of stubbed text(). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@CodeWithMaBot is attempting to deploy a commit to the Ma's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Codecov's patch check failed at 84.83% against a 90.16% target. Most of the misses were in stats and theme code the cleanup rewrote, which had no specs. - Stats spec: series and movie status counts, current streak (today, yesterday, broken), and time-of-day buckets. - Theme switcher spec: the system → light → dark → system cycle with saved choices, OS changes in system mode, explicit choices ignoring the OS, and an unknown stored value. - ITEM_STATUSES is now a readonly tuple. Dropping the field annotation in item-form had made its inferred type mutable. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
CodeWithMa
pushed a commit
that referenced
this pull request
Nov 27, 2026
Without a codecov.yml, the patch target was dev's current coverage. It rose with every well-tested merge and failed refactors that touched untested code (PR #220 hit an unchosen 90.16% bar). The patch check now has a fixed 85% target. The project check keeps its auto target with 0.5% slack, so small drops after deleting code do not fail a PR. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A cleanup pass over the whole codebase that keeps behavior the same: 55 files, +433/−820.
!and needless casts are replaced by narrowing (@if (x; as y), local consts). Return types and generics that inference already covers are dropped.importDatadrops its large try/catch in favor of aparseJsonhelper.?? {}on schema-required records, privatepersistentStoragere-checks, and an unreachable round-robin branch.as unknown ascasts.Files replace stubbedtext()in some specs; a few settings fixtures still stub it.Known gap (pre-existing, not addressed)
fake-indexeddb turns stored jsdom Blobs into empty objects, so the poster export specs never check real base64 image content.
Test plan
bun run lintbun run test --no-watch— 58 files, 1062 tests passbun run build(the initial bundle budget warning was already there before this change)bun run e2ewith nix-shell Chromium — journey passes🤖 Generated with Claude Code